package com.packer.ext.http;

/**
 * des:封装服务器返回数据
 */
public class BaseRespose<T> {

  public boolean error;
  public T results;

  public int code;
  public String msg;
  public T data;

  public boolean succeed() {
    return error;
//    return code == 0;
  }

//  @Override
//  public String toString() {
//    return "BaseRespose{" +
//        "code='" + code + '\'' +
//        ", msg='" + msg + '\'' +
//        ", data=" + data +
//        '}';
//  }
}